#ifndef TREE_H
#define TREE_H

#include <stdio.h>
#include <stdlib.h>

typedef struct node
{
    int id;
    struct node* lchild;
    struct node* rchild;
}tree;

tree* CreateTree(int n,int i);

void TreePreOrder(tree* root);

void TreeInOrder(tree* root);

void TreePostOrder(tree* root);

#endif